<?php
    include 'connectDB.php';
	
	$strSQL = "UPDATE tbl_item SET 
	 item_name 	 = '".$_POST[txtItemName]."' ,
	 price = '".$_POST[txtPrice]."' ,
	 mer_id = '".$_POST[Merchant]."'
	 WHERE item_id = '".$_GET["ItemID"]."' ";
	
	$objQuery = mysql_query($strSQL);
	
	if($objQuery){
		echo "Edit Success.";
		echo '<meta HTTP-EQUIV="REFRESH" content="2; url=http://127.0.0.1/merchant/Item.php">';
	}else{
		echo "Error ! Edit not success.";
	}
?>